function main(){
    debugger
    let rows = this.$$("table_bamqt8").$$getSelection().selectedRows[0]['文书附件'].value
    const transformedData = rows.map(item => ({
        fileId: item.fileId,
        fileName: item.fileName || ''
    }));

    let params = [{
        name: "@state",
        valueContent: 'batch'
    }];

    api.DATA_SOURCE_EXECUTE("ds_api:84a4cc20-4c91-41eb-91a5-09ef2bd09ec8", "api", params, [], JSON.stringify(transformedData)).then((res) => {
        resolve(res)
    }).catch(err => {
        self.$message.error(err.message);
    });
}
